<?php

namespace App\Models\Factory\V2;


use App\Models\AbsModelFactory;
use App\Models\Orm\AwUserInvite;

/**
 * 用户邀请记录工厂类
 * Class AwUserInviteFactory
 * @package App\Models\Factory\V2
 */
class AwUserInviteFactory extends AbsModelFactory
{
    /**
     * 通过被邀请人手机号查询邀请记录
     * @param $phone
     * @return mixed
     */
    public static function getInviteByInvitedPhone($phone)
    {
        return AwUserInvite::where('phone', $phone)->first();
    }


}